class NutritionVisitor implements FruitVisitor {
    @Override
    public void visit(Apple apple) {
        System.out.println("苹果营养分析：维生素C 8mg/100g");
    }

    @Override
    public void visit(Banana banana) {
        System.out.println("香蕉营养分析：钾 358mg/100g");
    }
}
